package com.settlement.system.mapper;

import com.settlement.system.model.entity.common.SinglePage;
import com.settlement.system.model.entity.common.TblAcsUserRoleAuthority;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * ACS用户角色权限 Mapper 接口
 * @author Ximi
 * @since 2020-06-05
 */
public interface TblAcsUserRoleAuthorityMapper extends BaseMapper {

    /**
     * searchDetailList
     * @param page
     * @param params
     * @param orderByField
     * @param orderBy
     * @return
     * @throws Exception
     */
    List<TblAcsUserRoleAuthority> searchDetailList(@Param("page") SinglePage page, @Param("params") Map<String,Object> params,
                                                   @Param("orderByField") String orderByField, @Param("orderBy") String orderBy) throws  Exception;

    /**
     * deleteByLoginName
     * @param loginName
     */
    void deleteByLoginName(@Param("loginName")String loginName);

    /**
     * selctAllUserInfo
     * @param params
     * @return
     * @throws Exception
     */
    List<TblAcsUserRoleAuthority> selctAllUserInfo(@Param("params") Map<String, Object> params) throws Exception;

    /**
     * selctAllUserByBillNo
     * @param params
     * @return
     * @throws Exception
     */
    List<TblAcsUserRoleAuthority> selctAllUserByBillNo(@Param("params") Map<String, Object> params) throws Exception;

    /**
     * getUserByOrderBillNo
     * @param params
     * @return
     * @throws Exception
     */
    List<TblAcsUserRoleAuthority> getUserByOrderBillNo(@Param("params") Map<String, Object> params) throws Exception;
}

